<template>
  <div>
    <div v-if="item.statys">
      <a :name="anchor"></a>
      <div style="margin-top: 10px">{{item.name}}</div>
      <div class="substance">{{item.namedetail}}</div>
      <div class="interpretation">{{item.source}}</div>

    </div>


  <div v-else>
    <a :name="anchor"></a>
       <div style="margin-top: 10px">{{item.name}}</div>
       <div class="substance">{{item.namedetail}}</div>
    </div>
  </div>
</template>
<script>
  export default {
    name: "MenuContent",
    methods: {
      selectHandler () {
        detail.refreshList(this.item);
      }
    },
    data() {
      return {
        anchor: ''
      }
    },
    props: ['item'],
    mounted() {
      console.log(this.item.name);
      this.anchor = this.item.name;
    }
  }
</script>
<style scoped>
  .substance{
    width: 100%;
    height: 50px;
    background: #909399;
    margin-top: 10px;
  }

  .interpretation {
    font-family: "Microsoft YaHei", serif;
    font-size: 12px;
    color: #999999;
    letter-spacing: 0;
    text-align: justify;
    line-height: 22px;
  }
</style>
